From: Florian Müllner Date: Wed, 30 Aug 2023 15:25:30 +0000 (+0200) Subject: screenshot: Export captureScreenshot() function X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~320^2^2~33 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=fa4d4af4c6b1de4de7f381bd76dbdcf06afc4d87;p=gnome-shell.git screenshot: Export captureScreenshot() function It is needed by the corresponding item in the window menu. Closes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6967 Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index b13be7b6b..d3c28a26b 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -2246,7 +2246,7 @@ function _storeScreenshot(bytes, pixbuf) { * @param {number} cursor.y - The cursor y coordinate. * @param {number} cursor.scale - The cursor texture scale. */ -async function captureScreenshot(texture, geometry, scale, cursor) { +export async function captureScreenshot(texture, geometry, scale, cursor) { const stream = Gio.MemoryOutputStream.new_resizable(); const [x, y, w, h] = geometry ?? [0, 0, -1, -1]; if (cursor === null)